package com.example.takeaway.model.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.takeaway.model.bo.BaseBO;
import java.time.LocalTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 店铺表
 * </p>
 *
 * @author 邢晨旭
 * @since 2023-10-12
 */
@Getter
@Setter
@TableName("shop")
public class Shop extends BaseBO {

    /**
     * 店铺ID（主键）
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    @TableField("shop_name")
    private String shopName;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 营业开始
     */
    @TableField("operating_hours_start")
    private LocalTime operatingHoursStart;

    /**
     * 营业结束
     */
    @TableField("operating_hours_end")
    private LocalTime operatingHoursEnd;

    /**
     * 状态(0:未营业, 1:营业中)
     */
    @TableField("status")
    private Integer status;

    /**
     * 店铺logo
     */
    @TableField("logo")
    private String logo;

    /**
     * 配送方式(0,自提,1:配送)
     */
    @TableField("delivery_method")
    private Integer deliveryMethod;
}
